package com.pox.guli.service.edu.feign;

import com.pox.guli.common.base.result.R;
import com.pox.guli.service.edu.feign.fallback.OssFileServiceFallBack;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * OSS文件管理服务远程调用
 *
 * @Author PoX21s
 * @Date: 2022/6/3 10:52
 * @Version 1.0
 */

@Service
@FeignClient(value = "service-oss", fallback = OssFileServiceFallBack.class)
public interface OssFeignService {

    @ApiOperation("远程调用测试用例")
    @GetMapping("/admin/oss/file/test")
    R testFeign();

    @ApiOperation("远程OSS文件删除")
    @DeleteMapping("/admin/oss/file/remove")
    R removeFile(String url);
}
